<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script src="../../../node_modules/axios/dist/axios.js"></script>
    <input type="file" id="file" onchange="uploadFiles()" multiple="multiple">

    <script>
        function uploadFiles() {
            let file_arr = document.getElementById("file").files
            console.log("🚀 ~ file: upload.html ~ line 18 ~ uploadFiles ~ file_arr", file_arr)
            let formDatas = new FormData()

            for (let i = 0; i < file_arr.length; i++) {
                formDatas.append("file", file_arr[i])
            }
            axios.post("http://localhost:3001/upload_s", formDatas).then(res => {
                this.push_dom_2_quill(res.data.result)
            })
        }
    </script>
</body>

</html>